
const app = new Vue({
  data: {
    val: '',
    counter: 100,
    // counter10: 1000
  },
  watch: {
    /*counter(newVal) {
      this.counter10 = newVal * 10
    }*/
  },
  computed: {
    counter10() {
      return this.counter * 10
    }
  },
  methods: {
    counterAdd(leave, str, ev, arr, obj) {
      console.log(leave)
      console.log(str)
      console.log(arr)
      console.log(obj)
      console.log(ev)
      // this.counter += leave
      // this.counter++
      // console.log(this.counter)
    },
    handleSubBox(event) {
      // event.stopPropagation()
      console.log('====handleSubBox====')
      console.log(event)
      console.log('====handleSubBox====')
    },
    handleLink(event) {
      // event.preventDefault()
      // event.stopPropagation()
      console.log('----handleLink')
      console.log(event)
      console.log('----handleLink')
    },
    uname() {
      console.log(this.val)
    }
  }
}).$mount('#app')

